﻿using System;
using System.IO;
using System.Linq;
using System.Xml.Linq;

namespace RemoveSolotionReadonly
{
    class Program
    {
        static void Main(string[] args)
        {

            var elm = new XElement("xml", new XElement("ProjGUID", "", new XAttribute("defaultvalue", "233")));

            //string slnPath = Console.ReadLine();

            //FileInfo[] allFiles = new DirectoryInfo(slnPath).GetFiles("*.*", SearchOption.AllDirectories);
            //string[] allChars = @"bin\,obj\,TempFiles\,App_Data\,WindowsServersDBConfig.xml,_frontend\_build\customize-module.json".Split(new[] { ',' }, StringSplitOptions.RemoveEmptyEntries);
            //foreach (var fi in allFiles.Where(file => allChars.Any(i => file.FullName.Contains(i)) && file.IsReadOnly))
            //{
            //    File.SetAttributes(fi.FullName, FileAttributes.Normal);
            //    Console.WriteLine($"去只读 -> {fi.FullName}");
            //}

            Console.WriteLine("输入任意键结束...");
            Console.ReadKey();
        }
    }
}
